<?php

use Illuminate\Support\Facades\Route;

Route::namespace('Api')->middleware('api')->group(function () {
    # 短信
    Route::prefix('verify')->group(function ($route) {
        $route->any('get', VerifyController::class.'@getVerify');
    });

    # 用户
    Route::prefix('user')->group(function ($route) {
        $route->any('openid', UserController::class.'@getUserOpenId');
        $route->any('mobile', UserController::class.'@saveWeChatUser');
        $route->any('bind/openid', UserController::class.'@bindWechatSupplyByOpenid');
        $route->any('sid/bind', UserController::class.'@bindUserSid');
        $route->any('info', UserController::class.'@userInfo');
        $route->any('logout', UserController::class.'@logout');
        $route->any('password_login', UserController::class.'@passwordLogin');
    });

});
